package com.ejuornal.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ejuornal.bean.Page;
import com.ejuornal.bean.vo.CommentUser;
import com.ejuornal.dao.impl.Comment_UserDaoImpl;
import com.ejuornal.service.Comment_UserService;
import com.sun.corba.se.impl.ior.NewObjectKeyTemplateBase;

@Component("comment_UserService")
public class Comment_UserServiceImpl implements Comment_UserService {
	private Comment_UserDaoImpl comment_UserDaoImpl;

	public Page<CommentUser> findCommentVOByTypeId(int current_record,
			String url, String type, int typeId) {
		String hsql = "WHERE type = ? AND typeId = ?";
		return comment_UserDaoImpl.find5(current_record, url, hsql,new Object[]{ type, typeId });
	}

	public Comment_UserDaoImpl getComment_UserDaoImpl() {
		return comment_UserDaoImpl;
	}
	@Resource(name = "comment_UserDao")
	public void setComment_UserDaoImpl(Comment_UserDaoImpl comment_UserDaoImpl) {
		this.comment_UserDaoImpl = comment_UserDaoImpl;
	}

}
